# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname="pmccabe"
pkgver="2.8"
pkgrel=1
pkgdesc="McCabe-style complexity and line counting for C and C++"
url="https://gitlab.com/pmccabe/pmccabe"
arch="all"
license="GPL-2.0-or-later"
subpackages="${pkgname}-doc"
source="https://gitlab.com/pmccabe/pmccabe/-/archive/v${pkgver}/pmccabe-v${pkgver}.tar.bz2"
builddir="${srcdir}/pmccabe-v${pkgver}"

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="${pkgdir}" install
}

sha512sums="0f3b4287b59eafd7011192cbec1b69c3216bdcb73eb6231a5c965dca12f710e204a55cd029b69169a42b2dd575c629905f0700e0272b2e7594239a0f75660a52  pmccabe-v2.8.tar.bz2"
